from django.urls import path ,include,re_path
from . import views
from rest_framework.routers import DefaultRouter

# app_name = 'users'
#
# router=DefaultRouter()
# router.register(r'users',views.UserView,basename="user")
# router.register(r'clazz',views.ClazzView,basename="clazz")

# urlpatterns=[
    # re_path(r"^$",views.index,name="index"),
    # path('rope/<int:pk>',views.rope,name="rope"),
    # path("add",views.add,name="add"),
    # re_path(r'modify/(?P<pk>\d+$)',views.modify,name="modify"),
    # path('list/<int:pk>',views.list,name="list"),
    # path('delete/<int:pk>',views.delete,name="delete"),
    # path('update/<int:pk>',views.update,name="update")
    # path('index',views.UserView.as_view(),name='index'),
    # path('<int:pk>',views.UserView.as_view(),name='detail'),
    # path('clazz',views.ClazzView.as_view(),name='clazz'),
    # path('clazz/<int:pk>',views.ClazzView.as_view(),name='clazz_detail'),
    # path('',include(router.urls)),
    # path("abc",views.ClazzView.as_view({"get":"abc"}),name="class-abc")

# ]